package com.example.oj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.oj.entity.QuestionAnswer;
import com.example.oj.entity.dto.questionAnswer.AnswerSaveRequest;
import com.example.oj.entity.vo.QuestionAnswerVO;

/**
* @author 28651
* @description 针对表【questionAnswer】的数据库操作Service
* @createDate 2024-04-19 18:19:39
*/
public interface QuestionAnswerService extends IService<QuestionAnswer> {

  QuestionAnswer getByQuestionId(Long questionId);

  QuestionAnswerVO getAnswerVO(QuestionAnswer questionAnswer);

  Integer addAnswer(AnswerSaveRequest saveRequest);

  Integer getHasAnswer(Long questionId);
}
